package c.a.a.z.c;

import android.graphics.Path;
import android.graphics.PathMeasure;
import android.graphics.PointF;
import c.a.a.f0.a;
import c.a.a.f0.c;
import java.util.List;

/* compiled from: PathKeyframeAnimation */
public class i extends f<PointF> {
    public final PointF i = new PointF();
    public final float[] j = new float[2];
    public h k;
    public PathMeasure l = new PathMeasure();

    public i(List<? extends a<PointF>> list) {
        super(list);
    }

    public Object f(a aVar, float f) {
        h hVar = (h) aVar;
        Path path = hVar.o;
        if (path == null) {
            return (PointF) aVar.b;
        }
        PointF pointF;
        c cVar = this.e;
        if (cVar != null) {
            pointF = (PointF) cVar.a(hVar.e, hVar.f.floatValue(), hVar.b, hVar.c, d(), f, this.d);
            if (pointF != null) {
                return pointF;
            }
        }
        if (this.k != hVar) {
            this.l.setPath(path, false);
            this.k = hVar;
        }
        PathMeasure pathMeasure = this.l;
        pathMeasure.getPosTan(pathMeasure.getLength() * f, this.j, null);
        pointF = this.i;
        float[] fArr = this.j;
        pointF.set(fArr[0], fArr[1]);
        return this.i;
    }
}
